﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JM.JCY.BusinessEntity;

namespace JM.JCY.DataAccess
{
    public class PerformanceCaseDA : JCYDataAccessBasecs
    {
        public void UpdatePerformanceCase(PerformanceCaseDataSet.T_PerformanceCaseDataTable dt)
        {
            base.Helper.Update(dt);
        }

        public PerformanceCaseDataSet.T_PerformanceCaseDataTable GetPerformanceCase(int caseId, string name)
        {
            var dt = new PerformanceCaseDataSet.T_PerformanceCaseDataTable();
            base.Helper.Fill(dt, "P_PerformanceCase_S", caseId, name);
            return dt;
        }

        public void UpdateLiangHuaStatistics(PerformanceCaseDataSet.T_LiangHuaStatisticsDataTable dt)
        {
            base.Helper.Update(dt);
        }

        public PerformanceCaseDataSet.T_LiangHuaStatisticsDataTable GetLiangHuaStatistics(int caseId, string year, string dept, string name)
        {
            var dt = new PerformanceCaseDataSet.T_LiangHuaStatisticsDataTable();
            base.Helper.Fill(dt, "P_LiangHuaStatistics_S", caseId, year, dept, name);
            return dt;
        }
    }
}
